package com.xucy.springboot.designmodel.structural.decorator;

/**
 * @Author xucy
 * @Date 2019-07-18 10:39
 * @Description 火腿装饰类
 **/

public class HamDecoration extends FoodDecoration {

    public HamDecoration(Cake cake) {
        super(cake);
    }

    @Override
    public String description() {
       return super.description()+"加一根火腿";
    }

    @Override
    public int cost() {
        return super.cost()+3;
    }
}
